import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://www.bilibili.com")

# 找到输入框位置，输入软件测试
driver.find_element(By.CLASS_NAME,'nav-search-input').send_keys("软件测试")

# 找到搜索框位置，点击搜索
driver.find_element(By.CLASS_NAME,'nav-search-btn').click()

time.sleep(4)


# 点击最多播放
# driver.find_element(By.CLASS_NAME,'vui_tabs--nav-text').click()
# time.sleep(4)


driver.close()